import request from '@/utils/request'


export function getClasses(data) {
  return request({
    url: `/vue-admin-template/classes`,
    method: 'get',
    data
  })
}

export function addClass(data) {
  return request({
    url: '/vue-admin-template/class',
    method: 'post',
    data
  })
}

export function updateClass(data) {
  return request({
    url: '/vue-admin-template/class/',
    method: 'put',
    data
  })
}

export function deleteClass(id) {
  return request({
    url: `/vue-admin-template/class/${id}`,
    method: 'delete'
  })
}


/**
 * 获取播控教室
 * @param tenantid
 * @returns {AxiosPromise}
 */
export function getRooms(tenantid){
  return request({
    url: `/vue-admin-template/rooms/${tenantid}`,
    method: 'get',

  })
}



